﻿using Microsoft.AspNetCore.SignalR;

namespace WebApiSinglR
{
    public class ImportDictHub : Hub
    {
        private readonly ImportExecutor _executor;

        public ImportDictHub(ImportExecutor executor)
        {
            _executor = executor;
        }
        public Task Import()
        {
            _ = _executor.ExecuteImportAsync(this.Context.ConnectionId);
            return Task.CompletedTask;
        }
    }
}
